<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%-- <%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> --%>
<%@ taglib prefix="sitemesh"
	uri="http://www.opensymphony.com/sitemesh/decorator"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="decorator" content="mainframe" />
<title>操作日志</title>
<style>
.test {
	overflow: hidden;
	margin-left: 1.15rem;
	width: 7rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}
</style>
</head>
<body>
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1>
			  <small><b style="color:#0000FF;">A</b>详情</small>
		</h1>
		<ol class="breadcrumb">
			<li><a href="#"><i class="fa fa-dashboard"></i>操作日志</a></li>
		</ol>
	</section>
	<!-- Main content -->
	<section class="content">
		<div class="box box-default">
			<div class="box-header">
				<button type="button" class="btn btn-default" id="goback" onclick="javascript:goback();">返回</button>
				<form class="form-horizontal" role="form" id="searchForm" action="<%=request.getContextPath()%>/mgtlog/logDetail.html">
					<input type="hidden" name="userId" id="userId" value="${mgtuser.userId }"/>
					<input type="hidden" name="addTimeStart" id="addTimeStart" value="<fmt:formatDate value="${addTimeStart}" pattern="yyyy-MM-dd"/>"/>
					<input type="hidden" name="addTimeEnd" id="addTimeEnd" value="<fmt:formatDate value="${addTimeEnd}" pattern="yyyy-MM-dd"/>"/>
					<input type="hidden" name="totalPages" id="totalPages" value="${pager.totalPages }"/>
					<input type="hidden" name="pageNumber" id="pageNumber" value="${pager.pageNumber }"/>
					<input type="hidden" name="pageSize" value="${pager.pageSize }"/>
					<div class="box-tools"></div>
				</form>
			</div>
			<div class="box-body">
				<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
					<!--<caption>基本的表格布局</caption>  -->
					<thead>
						<tr>
							<th hidden="true">编号</th>
							<th>操作模块</th>
							<th>操作模块子分类</th>
							<th>操作动作</th>
							<th>操作时间</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach var="mgtlog" items="${pager.datas}" varStatus="status">
							<tr>
								<td hidden="true">
								 	<input type="hidden" value="${mgtlog.logId}" id="logId" name="logId" />
								</td>
								<td>${mgtlog.moudleName}</td>
								<td>${mgtlog.chlidMoudle}</td>
								<td>${mgtlog.operation}</td>
								<td><fmt:formatDate value="${mgtlog.addTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
								
							</tr>
						</c:forEach>
					</tbody>
				</table>
				<nav id="pager"></nav>
			</div>
		</div>
	</section>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/static/plugins/jquery/pager/jquery.pager.bootstrap.js"></script>
	<script type="text/javascript"
		src="<%=request.getContextPath()%>/static/plugins/jquery/pager/pager.js"></script>
	<script>
		var path = "<%=request.getContextPath()%>";
		//传递的参数
		var totalPages ="${pager.totalPages}";	
		var pageNumber ="${pager.pageNumber}";	
		var pageSize ="${pager.pageSize}";
		
		$(document).ready(function() {
			initPager("pager", pageNumber, totalPages, function(pageclickednumber){
				$("input[name='pageNumber']").val(pageclickednumber);
				$("#searchForm").submit();
			}, {});
		});
		
		function goback(){
			window.location.href=path + "/mgtlog/userinfo";
		}
	
	</script>
</body>
</html>